Tag Link | [Image->Data] | Category | Image |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | Tag |
Implementation | Internal | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Converts an image variable to a binary string. This is useful for serving images to a browser without writing the image to file.
[Image Variable->Data]
Required Parameters | |
---|---|
Image | An LDML [Image] variable is required. |
To serve an image:
Use the [File_Serve] tag to set the MIME type of the image to be served, and use the [Image->Data] tag to get the binary data from a defined [Image] variable. The [File_Serve] tag aborts the current file so it must be the last tag to be processed. The following example shows a GIF named Image.gif being served from an Images folder.
[Var:'Image'=(Image: 'image.gif')][File_Serve: $Image->Data,